/**
 * Created by JetBrains RubyMine.
 * User: beni
 * Date: 29.12.11
 * Time: 11:56
 * To change this template use File | Settings | File Templates.
 */

$(document).ready(function() {
    $(".navigationLink").click(function() {
        $(this).next().toggle();
        return false;
    });

    if (window.location.hash){
        var hash = window.location.hash.substring(1);
        if (hash.indexOf("smartphones") != -1) {
            $("#smartphones").next().show();
        } else if (hash.indexOf("laptops") != -1){
            $("#laptops").next().show();
        } else if (hash.indexOf("desktops") != -1){
            $("#desktops").next().show();
        }
    }


    $(".profile_order_link").click(function(){
        $(this).parent().parent().next().toggle();
        return false;
    })


});